import request from '@/http'

export const getlength = () => {
    return request({
        url: '/system-settings/Teacher-management/getlength',
        method: 'get',
    })
}


export const getOnePageDate=(currentPage)=>{
    return request({
        url: '/system-settings/Teacher-management/getOnePageDate',
        method: 'post',
        data: {page:currentPage}
    })
}

export const deleteTeacher=(ID)=>{
    return request({
        url: '/system-settings/Teacher-management/delete',
        method: 'post',
        data: {id:ID}
    })
}

export const checkTeacher=(ID)=>{
    return request({
        url: '/system-settings/Teacher-management/check',
        method: 'post',
        data: {id:ID}
    })
}

export const updateTeacher=(form)=>{
    return request({
        url: '/system-settings/Teacher-management/update',
        method: 'post',
        data: form
    })
}

export const addTeacher=(form)=>{
    return request({
        url: '/system-settings/Teacher-management/add',
        method: 'post',
        data: form
    })
}